package net.zjitc.Utils;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;

/**
 * Created by Administrator on 2017/9/27.
 */
//写一个C3p0数据库连接池工具，直接获得连接池
public class C3P0Utils {
    public static DataSource ds = null;
    static {
        ds = new ComboPooledDataSource();
    }
    public static DataSource getDataSource(){
        return ds;
    }
}
